#include <stdio.h>

int main(int argc, char *argv[]) {

    int n = 0;
    scanf("%d", &n);
    
    switch (n)
    {
    case 1:
        printf("Mon");
        break;
    case 2:
        printf("Tue");
        break;
    case 3:
        printf("Wed");
        break;
    case 4:
        printf("Thur");
        break;
    case 5:
        printf("Fri");
        break;
    case 6:
        printf("Sat");
        break;
    case 7:
        printf("Sun");
        break;

    default:
        break;
    }
    

    return 0;
}